package com.zd01.interfaces;

import com.zd01.model.BookModel;
import com.zd01.model.PageResult;
import com.zd01.model.SearchModel;
import com.zd01.model.StudentModel;

import java.time.LocalDate;
import java.util.List;

public interface StudentInterface {
//    List<StudentModel> getALL();
//    PageResult<StudentModel> getALL(Integer page, Integer pageSize, String name, Integer age, LocalDate create_time);
    PageResult<StudentModel> getALL(SearchModel searchModel);

    // save book
    void add(BookModel bookModel);

    // save student
//    void addStudent(List<StudentModel> studentModelList);

    // 批量删除
    void deletes(List<Integer> ids);
    BookModel getBookStudent(Integer id);

    void update(BookModel bookModel);
}
